| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import { BaseEndpoint } from './baseEndpoint'; |
||
| 3 | |||
| 4 | /** |
||
| 5 | * Certifications Endpoint Class |
||
| 6 | */ |
||
| 7 | export class Certification extends BaseEndpoint { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Get list of certifications for movies |
||
| 11 | * @returns { Promise<CertificationsResponse> } |
||
| 12 | * @see https://developers.themoviedb.org/3/certifications/get-movie-certifications |
||
| 13 | */ |
||
| 14 | public async movies(): Promise<CertificationsResponse> { |
||
| 15 | return this.sendGetRequest('certification/movie/list'); |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Get list of certifications for tv shows |
||
| 20 | * @returns { Promise<CertificationsResponse> } |
||
| 21 | * @see https://developers.themoviedb.org/3/certifications/get-tv-certifications |
||
| 22 | */ |
||
| 23 | public async tv(): Promise<CertificationsResponse> { |
||
| 24 | return this.sendGetRequest('certification/tv/list'); |
||
| 25 | } |
||
| 28 |